const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  productionSourceMap: false,

  configureWebpack: {
    devServer: {
      client: {
        overlay: false // 编译错误时，取消全屏覆盖（建议关掉）
      },
    }
  },
  
  devServer: {
    // https: true,
    
    host: 'localhost',
    port: 8080,
    // open: true,
    compress: false,
    proxy: {
      '/': { 
        target: 'http://47.113.180.113/',
        ChangeOrigin: true,
        ws: false,
        pathRewrite: {
          '/': ''
        }
      }
    }
  }
})
